/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * formManHinhChinh.java
 *
 * Created on Jun 22, 2013, 4:06:04 PM
 */

package GUI;

import javax.swing.Icon;
import javax.swing.ImageIcon;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.SwingConstants;

/**
 *
 * @author copang
 */
public class formManHinhChinh extends javax.swing.JFrame {

    /** Creates new form formManHinhChinh */
    public formManHinhChinh() {
        initComponents();
        
        //Tra cuu sach
        JPanel pnTraCuuSach = new formTraCuuSach();
        jTabbedPane1.addTab("Tra cứu sách", new javax.swing.ImageIcon(getClass().getResource("/resources/addbook.png")), pnTraCuuSach);
        JLabel lbTraCuuSach = new JLabel("Tra cứu sách");
        Icon iconTraCuuSach = new ImageIcon(getClass().getResource("/resources/book_search.png"));
        lbTraCuuSach.setIcon(iconTraCuuSach);
        lbTraCuuSach.setIconTextGap(5);
        lbTraCuuSach.setHorizontalTextPosition(SwingConstants.RIGHT);        
        jTabbedPane1.setTabComponentAt(0, lbTraCuuSach);

        //Them dau sach
        JPanel pnThemDauSach = new formThemDauSach();
        jTabbedPane1.addTab("Thêm đầu sách", new javax.swing.ImageIcon(getClass().getResource("/resources/addbook.png")), pnThemDauSach);
        JLabel lbThemDauSach = new JLabel("Thêm đầu sách");
        Icon iconThemDauSach = new ImageIcon(getClass().getResource("/resources/addbook.png"));
        lbThemDauSach.setIcon(iconThemDauSach);
        lbThemDauSach.setIconTextGap(5);
        lbThemDauSach.setHorizontalTextPosition(SwingConstants.RIGHT);        
        jTabbedPane1.setTabComponentAt(1, lbThemDauSach);
        
        //Nhap sach
        JPanel pnNhapSach = new formPhieuNhapSach();
        jTabbedPane1.addTab("Nhập sách", new javax.swing.ImageIcon(getClass().getResource("/resources/addbook.png")), pnNhapSach);
        JLabel lbNhapSach = new JLabel("Nhập sách");
        Icon iconNhapSach = new ImageIcon(getClass().getResource("/resources/book_import.png"));
        lbNhapSach.setIcon(iconNhapSach);
        lbNhapSach.setIconTextGap(5);
        lbNhapSach.setHorizontalTextPosition(SwingConstants.RIGHT);        
        jTabbedPane1.setTabComponentAt(2, lbNhapSach);

        //Ban sach
        JPanel pnBanSach = new formLapHoaDonBanSach();
        jTabbedPane1.addTab("Bán sách", new javax.swing.ImageIcon(getClass().getResource("/resources/addbook.png")), pnBanSach);
        JLabel lbBanSach = new JLabel("Bán sách");
        Icon iconBanSach = new ImageIcon(getClass().getResource("/resources/book_sell.png"));
        lbBanSach.setIcon(iconBanSach);
        lbBanSach.setIconTextGap(5);
        lbBanSach.setHorizontalTextPosition(SwingConstants.RIGHT);
        jTabbedPane1.setTabComponentAt(3, lbBanSach);

        //Thu tien
        JPanel pnThuTien = new formLapPhieuThuTien();
        jTabbedPane1.addTab("Thu tiền", new javax.swing.ImageIcon(getClass().getResource("/resources/addbook.png")), pnThuTien);
        JLabel lbThuTien = new JLabel("Thu tiền");
        Icon iconThuTien = new ImageIcon(getClass().getResource("/resources/money_bag.png"));
        lbThuTien.setIcon(iconThuTien);
        lbThuTien.setIconTextGap(5);
        lbThuTien.setHorizontalTextPosition(SwingConstants.RIGHT);
        jTabbedPane1.setTabComponentAt(4, lbThuTien);

        //Thong tin khach hang
        JPanel pnTTKH = new formThongTinKhachHang();
        jTabbedPane1.addTab("Khách hàng", new javax.swing.ImageIcon(getClass().getResource("/resources/addbook.png")), pnTTKH);
        JLabel lbTTKH = new JLabel("Khách hàng");
        Icon iconTTKH = new ImageIcon(getClass().getResource("/resources/user.png"));
        lbTTKH.setIcon(iconTTKH);
        lbTTKH.setIconTextGap(5);
        lbTTKH.setHorizontalTextPosition(SwingConstants.RIGHT);
        jTabbedPane1.setTabComponentAt(5, lbTTKH);    

        //Quan ly nhan vien
        JPanel pnQLNV = new formQuanLyNhanVien();
        jTabbedPane1.addTab("Quản lý nhân viên", new javax.swing.ImageIcon(getClass().getResource("/resources/addbook.png")), pnQLNV);
        JLabel lbQLNV = new JLabel("Quản lý nhân viên");
        Icon iconQLNV = new ImageIcon(getClass().getResource("/resources/nhanvien.png"));
        lbQLNV.setIcon(iconQLNV);
        lbQLNV.setIconTextGap(5);
        lbQLNV.setHorizontalTextPosition(SwingConstants.RIGHT);
        jTabbedPane1.setTabComponentAt(6, lbQLNV);
        

        //Bao cao cong no
        JPanel pnBCCN = new formBaoCaoCongNo();
        jTabbedPane1.addTab("Báo cáo công nợ", new javax.swing.ImageIcon(getClass().getResource("/resources/addbook.png")), pnBCCN);
        JLabel lbBCCN = new JLabel("Báo cáo công nợ");
        Icon iconBCCN = new ImageIcon(getClass().getResource("/resources/report.png"));
        lbBCCN.setIcon(iconBCCN);
        lbBCCN.setIconTextGap(5);
        lbBCCN.setHorizontalTextPosition(SwingConstants.RIGHT);
        jTabbedPane1.setTabComponentAt(7, lbBCCN);

        //Bao cao ton kho
    /*    JPanel pnBCTK = new formBaoCaoTonKho();
        jTabbedPane1.addTab("Báo cáo tồn kho", new javax.swing.ImageIcon(getClass().getResource("/resources/addbook.png")), pnBCTK);
        JLabel lbBCTK = new JLabel("Báo cáo tồn kho");
        Icon iconBCTK = new ImageIcon(getClass().getResource("/resources/report.png"));
        lbBCTK.setIcon(iconBCTK);
        lbBCTK.setIconTextGap(5);
        lbBCTK.setHorizontalTextPosition(SwingConstants.RIGHT);
        jTabbedPane1.setTabComponentAt(8, lbBCTK); */

    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jTabbedPane1 = new javax.swing.JTabbedPane();
        jMenuBar1 = new javax.swing.JMenuBar();
        jMenu1 = new javax.swing.JMenu();
        jMenuItem2 = new javax.swing.JMenuItem();
        jSeparator1 = new javax.swing.JPopupMenu.Separator();
        jMenuItem3 = new javax.swing.JMenuItem();
        jMenu2 = new javax.swing.JMenu();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
        setExtendedState(JFrame.MAXIMIZED_BOTH);
        setMinimumSize(new java.awt.Dimension(1100, 650));

        jTabbedPane1.setToolTipText("");
        getContentPane().add(jTabbedPane1, java.awt.BorderLayout.CENTER);

        jMenu1.setText("Chức năng");

        jMenuItem2.setText("Đổi mật khẩu");
        jMenuItem2.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jMenuItem2MouseClicked(evt);
            }
        });
        jMenuItem2.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMenuItem2ActionPerformed(evt);
            }
        });
        jMenu1.add(jMenuItem2);
        jMenu1.add(jSeparator1);

        jMenuItem3.setText("Thoát");
        jMenuItem3.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jMenuItem3MouseClicked(evt);
            }
        });
        jMenuItem3.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMenuItem3ActionPerformed(evt);
            }
        });
        jMenu1.add(jMenuItem3);

        jMenuBar1.add(jMenu1);

        jMenu2.setText("Thông tin");
        jMenuBar1.add(jMenu2);

        setJMenuBar(jMenuBar1);

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void jMenuItem2MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jMenuItem2MouseClicked
        
    }//GEN-LAST:event_jMenuItem2MouseClicked

    private void jMenuItem2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItem2ActionPerformed
        new formDoiMatKhau().show();
    }//GEN-LAST:event_jMenuItem2ActionPerformed

    private void jMenuItem3MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jMenuItem3MouseClicked
        System.exit(0);
    }//GEN-LAST:event_jMenuItem3MouseClicked

    private void jMenuItem3ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItem3ActionPerformed
        System.exit(0);
    }//GEN-LAST:event_jMenuItem3ActionPerformed

    /**
    * @param args the command line arguments
    */
/*    public static void main(String args[]) {

        try {
            for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
                if ("Nimbus".equals(info.getName())) {
                    javax.swing.UIManager.setLookAndFeel(info.getClassName());
                    break;
                }
            }
        } catch (ClassNotFoundException ex) {
            java.util.logging.Logger.getLogger(formManHinhChinh.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (InstantiationException ex) {
            java.util.logging.Logger.getLogger(formManHinhChinh.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (IllegalAccessException ex) {
            java.util.logging.Logger.getLogger(formManHinhChinh.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (javax.swing.UnsupportedLookAndFeelException ex) {
            java.util.logging.Logger.getLogger(formManHinhChinh.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        }

        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                new formManHinhChinh().setVisible(true);
            }
        });
    } */

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JMenu jMenu1;
    private javax.swing.JMenu jMenu2;
    private javax.swing.JMenuBar jMenuBar1;
    private javax.swing.JMenuItem jMenuItem2;
    private javax.swing.JMenuItem jMenuItem3;
    private javax.swing.JPopupMenu.Separator jSeparator1;
    private javax.swing.JTabbedPane jTabbedPane1;
    // End of variables declaration//GEN-END:variables

}
